package com.burgeon.backend.SHOP.service;

import com.burgeon.backend.SHOP.entity.Address;
import com.burgeon.backend.SHOP.service.ex.AddAddressExceptionApp;

import java.util.List;

public interface AddressService {
    //设置默认地址
    void setDefault(String id,String uid,String token);

    void DelAddress(String id,String uid,String token);

    Address getDefaultAddress(String uid,String token);

    List<Address> getAddressByUser(String uid,String token);

    void addAddress(Address address) throws AddAddressExceptionApp;

    Address getAddressById(String id);

    void modAddress(Address address) throws AddAddressExceptionApp;
}
